package com.qiaofang.applet.service.member.service.dto;

import com.qiaofang.applet.common.base.BaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Data
@ApiModel("经纪人列表查询DTO")
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class EmployeeQueryDto extends BaseDto {

    @ApiModelProperty("集团编码")
    private String corporationCode;

    @ApiModelProperty("城市Code")
    private String cityCode;

    @ApiModelProperty("姓名")
    private String employeeName;

    @ApiModelProperty("主推 true主推  false不主推")
    private Boolean recommend;

    @ApiModelProperty("手机")
    private String mobilePhone;

    @ApiModelProperty("经纪人状态 区分离职与其他状态")
    private String employeeStatus;

    @ApiModelProperty("经纪人UUID集合")
    private List<String> employeeUniqueUuids;

    @ApiModelProperty(value = "是否主推：是/否，admin系统使用", hidden = true)
    private String recommendStr;

    @ApiModelProperty("城市权限code集合")
    private List<String> cityCodes;

    public void setRecommendStr(String recommendStr) {
        this.recommendStr = recommendStr;
        this.recommend = StringUtils.equals("是", recommendStr);
    }
}
